Optimal. Leaf size=37 \[ \frac{2 \sqrt{a} \sin ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a \cos (e+f x)+a}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0597373, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08, Rules used = {2774, 216} \[ \frac{2 \sqrt{a} \sin ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a \cos (e+f x)+a}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2774
Rule 216
Rubi steps
\begin{align*} \int \frac{\sqrt{a+a \cos (e+f x)}}{\sqrt{\cos (e+f x)}} \, dx &=-\frac{2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{x^2}{a}}} \, dx,x,-\frac{a \sin (e+f x)}{\sqrt{a+a \cos (e+f x)}}\right )}{f}\\ &=\frac{2 \sqrt{a} \sin ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+a \cos (e+f x)}}\right )}{f}\\ \end{align*}
Mathematica [A] time = 0.0643995, size = 50, normalized size = 1.35 \[ \frac{\sqrt{2} \sin ^{-1}\left (\sqrt{2} \sin \left (\frac{1}{2} (e+f x)\right )\right ) \sec \left (\frac{1}{2} (e+f x)\right ) \sqrt{a (\cos (e+f x)+1)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.392, size = 80, normalized size = 2.2 \begin{align*} 2\,{\frac{\sqrt{a \left ( \cos \left ( fx+e \right ) +1 \right ) }}{f\sqrt{\cos \left ( fx+e \right ) }}\sqrt{{\frac{\cos \left ( fx+e \right ) }{\cos \left ( fx+e \right ) +1}}}\arctan \left ({\frac{\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{{\frac{\cos \left ( fx+e \right ) }{\cos \left ( fx+e \right ) +1}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.79942, size = 197, normalized size = 5.32 \begin{align*} \frac{\sqrt{a} \arctan \left ({\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac{1}{4}} \sin \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + \sin \left (f x + e\right ),{\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac{1}{4}} \cos \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + \cos \left (f x + e\right )\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.09459, size = 325, normalized size = 8.78 \begin{align*} \left [\frac{\sqrt{-a} \log \left (\frac{2 \, a \cos \left (f x + e\right )^{2} - 2 \, \sqrt{a \cos \left (f x + e\right ) + a} \sqrt{-a} \sqrt{\cos \left (f x + e\right )} \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right )}{f}, -\frac{2 \, \sqrt{a} \arctan \left (\frac{\sqrt{a \cos \left (f x + e\right ) + a} \sqrt{\cos \left (f x + e\right )}}{\sqrt{a} \sin \left (f x + e\right )}\right )}{f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \left (\cos{\left (e + f x \right )} + 1\right )}}{\sqrt{\cos{\left (e + f x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \cos \left (f x + e\right ) + a}}{\sqrt{\cos \left (f x + e\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]